import user from "@/store/user";
import { getUserInfoByID } from "@/service/user";
const userStore = user();
export const useUpdateUserInfo = async () => {
  const res: any = await getUserInfoByID(userStore.userInfo!.id as number);
  userStore.userInfo = {
    ...userStore.userInfo,
    ...res.data,
    token: userStore.userInfo?.token
  };
};
